home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part1 / 9444 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: news.zeitgeist.net!usenet
  2. From: mwm@contessa.phone.net (Mike Meyer)
  3. Newsgroups: comp.sys.amiga.datacomm,comp.sys.amiga.advocacy,comp.sys.amiga.misc,comp.sys.amiga.networking
  4. Subject: Re: New Press Release!
  5. Date: Sat, 23 Mar 1996 14:29:53 PST
  6. Organization: Missionaria Phonibalonica
  7. Distribution: world
  8. Message-ID: <19960323.75240E0.D624@contessa.phone.net>
  9. References: <4iofm6$e4j@serpens.rhein.de> <DoLC38.2G4@info.uucp>     <4ir19b$mml@serpens.rhein.de> <oj6wx4dne22.fsf@hpsrk.fc.hp.com> <4ivdqe$62a@serpens.rhein.de>
  10. NNTP-Posting-Host: contessa.phone.net
  11. X-NewsReader: Amiga Yarn 3.9, 1995/05/09 10:42:03
  12.  
  13. In <4ivdqe$62a@serpens.rhein.de>, mlelstv@serpens.rhein.de (Michael van Elst) wrote:
  14. > koren@hpsrk.fc.hp.com (Steve Koren) writes:
  15. > >> Sure, and when you need more RAM than you have then everything
  16. > >> crawls. VM is just efficient when programs allocate RAM that they
  17. > >> do not need.
  18. > >Err, no.
  19. > Err, yes. If you use more RAM than you have you start thrashing.
  20.  
  21. Err, no. Using more RAM than you have is a necessary but precondition
  22. for thrashing, but it's not sufficient.
  23.  
  24. For instance, if I'm doing intense array work and spending several
  25. seconds on each row of a large array, then a good VM system will cause
  26. me to page in a raw when I start on it, paging out a row I've
  27. finished. This results in using more RAM than I have and still not
  28. thrashing. This is an extreme example of a property called "locality
  29. of reference", meaning that most references to memory - whether code,
  30. stack or data - tend to occur close to the previous references. In one
  31. study done at bell labs for stack usage, they noted that, exception of
  32. the recursive descent C compiler, every program on the Unix system
  33. they were working on made 96% of it's references to the top 4K of
  34. stack.
  35.  
  36. Demand paging trades off a bit of performance near the edge of
  37. non-paged systems capabilities - you start paging before you run out
  38. of RAM - for not failing hard until things get much worse than that.
  39. In general, it's considered a win. Systems designed to handle
  40. processes that can't afford the performance degradation due to demand
  41. paging usually have hooks to lock those processes in memory.
  42.  
  43.     <mike
  44.